#pragma once

#include <engine.ui/Font.hpp>
#include "Glyph.hpp"




class AdvancedFont : public BasicFont, public AdvancedGlyph
{
private:

	QString   m_fileName;
	int2      m_delta;

public:

	AdvancedFont(QString fileName);
	AdvancedFont(QDomElement elem, QDir path);


	QString fileName() const;
	QString textureFileName() const;
	QString name() const;

	void setPos(int2 pos);

	QDomElement domElement(QDomDocument& document) const;

private:

	static QString openFile(QString fileName);
	static QString textureFileName(QString content, QString fileName);
};
///////////////////////////////////////////////////////////////////////////////////////////////////
